import request from '@/utils/request'

// 查询设备同步记录列表
export function listDevicelog(query) {
  return request({
    url: '/iot/devicelog/list',
    method: 'get',
    params: query
  })
}

// 查询设备同步记录详细
export function getDevicelog(id) {
  return request({
    url: '/iot/devicelog/' + id,
    method: 'get'
  })
}

// 新增设备同步记录
export function addDevicelog(data) {
  return request({
    url: '/iot/devicelog',
    method: 'post',
    data: data
  })
}

// 修改设备同步记录
export function updateDevicelog(data) {
  return request({
    url: '/iot/devicelog',
    method: 'put',
    data: data
  })
}

// 删除设备同步记录
export function delDevicelog(id) {
  return request({
    url: '/iot/devicelog/' + id,
    method: 'delete'
  })
}
